
#ifndef  BREAKPOINTSERVICE_H
#define  BREAKPOINTSERVICE_H
#include <string>


class IBreakPoint;

class BreakPointService {
public:
    BreakPointService();
    ~BreakPointService();

    void start();
    void stop();

    void connected();
    void disconnected();

    void receivedLoginResp(const char * msg);
    void receivedNormalResp(const char * msg);
    void receivedBreakPointResp(const char * msg);

    void timeout();

private:

    void sendMessage(const char * msg);

private: 
    int status;
    static const int INITED = 0;
    static const int CONNECTED = 1;
    static const int LOGINED = 2;
    static const int DISCONNECTED = 3;

    IBreakPoint * breakPoint;
};

#endif   /* BREAKPOINTSERVICE_H */
